package com.mrd.gtimpframe.startRunner;

import com.mrd.gtimpframe.service.StartRunnerBiz;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by dark on 17/8/7.
 */
@Component
@Order(value = 1)
public class MyStartupRunner implements CommandLineRunner {
    @Resource
    private StartRunnerBiz startRunnerBiz;


    @Override
    public void run(String... strings) throws Exception {
        System.out.println("》》》》》》》》》服务启动执行》》》》》》》》》》》》》》》》》》");
        startRunnerBiz.selectAndUpdateGoodsCodeCache();
    }


}
